home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
User's Choice Windows CD
/
User's Choice Windows CD (CMS Software)(1993).iso
/
misc1
/
iv26_w30.zip
/
INTERVIE
/
X11
/
PALETTE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-04
|
626b
|
35 lines
#ifndef palette_h
#define palette_h
#include "windows.h"
#include <InterViews\color.h>
const int PALETTESIZE = 236;
struct LOG_PALETTE {
WORD palVersion;
WORD palNumEntries;
PALETTEENTRY palPalEntry[PALETTESIZE];
};
class Palette {
public:
Palette();
~Palette();
void Realize(HDC);
int SetEntry(ColorIntensity, ColorIntensity, ColorIntensity);
int GetPaletteIndex(DWORD);
HPALETTE GetPalette() { return pal; };
private:
friend class Color;
LOG_PALETTE *logPal;
HPALETTE pal;
int max_entry;
};
Palette* _palette;
#endif